//package com.microtf.wx;
//
//import org.springframework.http.MediaType;
//import org.springframework.stereotype.Component;
//import org.springframework.web.reactive.function.BodyInserters;
//import org.springframework.web.reactive.function.server.HandlerFunction;
//import org.springframework.web.reactive.function.server.ServerRequest;
//import org.springframework.web.reactive.function.server.ServerResponse;
//import reactor.core.publisher.Mono;
//
//import static org.springframework.web.reactive.function.BodyInserters.fromObject;
//
//@Component
//public class CityHandler {
//    public Mono<ServerResponse> helloCity(ServerRequest request) {
//        return ServerResponse.ok().contentType(MediaType.TEXT_PLAIN)
//                .body(fromObject("Hello, City!"));
//
//
//    }
//    HandlerFunction<ServerResponse> myh=
//            request -> ServerResponse.ok().body(fromObject("Hello World"));
//    HandlerFunction<ServerResponse> abc=
//            ServerRequest ->ServerResponse.ok().body(fromObject("china"));
//
//}
